<?php
/**
 * Created by PhpStorm
 * user: MingLiang
 * Date：2021/8/20
 * Time: 11:58 上午
 */
namespace app\admin\controller\cost;

use app\admin\model\CostCost;
use app\admin\traits\Curd;
use app\common\controller\AdminController;
use think\App;

class Cost extends AdminController
{
    use Curd;

    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->model = new CostCost();
    }

    public function index(){
//        $data = [
//            'code'  => 0,
//            'msg'   => '',
//            'count' => 1,
//            'data'  => [12,1],
//        ];
//        return json($data);

        return $this->fetch();
    }
}